"""
@author: Sergiy Tsymbalyuk
"""

import logging

from pylons import tmpl_context as c

from chowa.lib.base import BaseController, render, Session
from chowa.model.organization import Email

log = logging.getLogger(__name__)

class OrganizationController(BaseController):
    def mailboxes(self):
        c.mailboxes = Session.query(Email).all()
        return render('/info/mailboxes.html')
